package cn.wolfcode.util;


public class RedisConstants {

    //获取Catalog类的权限定名
    public static final String CATALOG_ALL = "cn.wolfcode.shop.domain.Catalog" + ":ALL";

    //获取Catalog类的权限定名+传进的id
    public static final String CATALOG_PROPERTY_COUNT = "cn.wolfcode.shop.domain.Catalog" + ":{0}:PropertyCount";

    //获取Catalog类的权限定名+传进的id
    public static final String CATALOG_PRODUCT_COUNT = "cn.wolfcode.shop.domain.Catalog" + ":{0}:ProductCount";

    //用户登录的token
    public static final String USER_TOKEN = "cn.wolfcode.shop.domain.UserLogin:{0}";

    //购物车--> 封装 两个参数
    public static final String SHOPCAR_ITEM ="cn.wolfcode.shop.domain.ShopCar:USER:{0}:SKUID:{1}";

    //哪个用户的购物车
    public static final String SHOPCAR_LIST ="cn.wolfcode.shop.domain.ShopCar:USER:{0}:LIST";


   /* public static void main(String[] args) {
        System.out.println(MessageFormat.format(CATALOG_PROPERTY_COUNT, 12));
    }
*/
}
